package com.chis.utils;

import java.io.InputStream;
import java.util.Properties;

/**
 * 
 * @Description 
 * @Company zwx
 * @author wlj
 * @version 2018年03月30日
 */
public class PropUtil {


    public static Properties prop;

    static {
        try {

            prop = ReadPropertiesUtil.readProperties("application.properties");
//            prop = new Properties();
//            InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties");
//            prop.load(in);

        } catch (Exception e){
            e.printStackTrace();
        }

    }



    public static String getproval(String prokey){
        return (String) prop.get(prokey);
    }



}
